package text.traversal;

import text.Text;

public class ComputeProbaClass implements ITextTraversal
{
	public final static String PROBA_CLASS = "ProbaClass";

	private double probaClass = 0;
	
	public void traversal(String word, Text text)
	{
		probaClass += text.getTextSet().getInfo(ComputeProbaOccurence.PROBA_OCCURENCE, word);
		text.addInfo(PROBA_CLASS, probaClass);
	}
}
